package com.greensam.pixelengine.pojo.vo.user.response;

import com.greensam.pixelengine.event.base.WrappedEventParams;
import com.greensam.pixelengine.pojo.base.BaseDto;
import com.greensam.pixelengine.pojo.emuns.GenderEnum;
import com.greensam.pixelengine.pojo.emuns.StatusEnum;
import com.greensam.pixelengine.pojo.vo.role.response.RoleVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 已登录用户信息（脱敏）
 *
 * @author Macro_Ray
 * @since 2025/6/17 15:49
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(title = "已登录用户信息（脱敏）")
public class LoginUserVo extends BaseDto implements WrappedEventParams {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(title = "用户ID")
    private Long id;

    @Schema(title = "创建人")
    private Long createBy;

    @Schema(title = "创建时间")
    private LocalDateTime createTime;

    @Schema(title = "更新人")
    private Long updateBy;

    @Schema(title = "更新时间")
    private LocalDateTime updateTime;

    @Schema(title = "用户名")
    private String name;

    @Schema(title = "用户账号")
    private String account;

    @Schema(title = "用户性别")
    private GenderEnum gender;

    @Schema(title = "用户头像")
    private String avatar;

    @Schema(title = "用户账号")
    private String profile;

    @Schema(title = "邮箱")
    private String email;

    @Schema(title = "手机号")
    private String phone;

    @Schema(title = "用户状态")
    private StatusEnum status;

    @Schema(title = "用户角色")
    private List<RoleVo> roles;

}
